package org.vincen.springapp.controller;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LoginLogoutController {

	@RequestMapping(method = RequestMethod.GET, value = "/login")
	public void login() {

	}

	@RequestMapping(method = RequestMethod.GET, value = "/index")
	public void index() {

	}

	@RequestMapping(method = RequestMethod.GET, value = "/register")
	public void register() {

	}

//	@RequestMapping(method = RequestMethod.POST, value = "/signin", produces="text/plain")
//	public @ResponseBody
//	String signin(@RequestParam(value = "username") String username,
//			@RequestParam(value = "password") String password) {
//		String reverseUsername = StringUtils.reverse(username);
//		String changedpassword = StringUtils.upperCase(password);
//		return reverseUsername + " " + changedpassword;
//	}
}
